<form id="edit-form" class="form-horizontal" style="position:relative;background: #fff" role="form" data-toggle="validator" method="POST" action="">
    
    <div class="panel-body">
        <div id="myTabContent" class="tab-content" >
            <div class="tab-pane fade active in" id="tabs_0">
                <input type="hidden" id="row" name="data" value='<?php echo json_encode($row);?>' />
                <input type="hidden" id="id" name="row[id]" value='{$row.id}' />
                <div class="form-group">
                        <label for="c-title" class="control-label col-xs-12 col-sm-2">标题:</label>
                        <div class="col-xs-12 col-sm-8" id="div-title" >
                            <input type="text" id="c-title" name="row[title]" value="{$row.title}" class="form-control" title="title"  placeholder="" data-rule=""  data-tip="标题"  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-name" class="control-label col-xs-12 col-sm-2">名称:</label>
                        <div class="col-xs-12 col-sm-8" id="div-name" >
                            <input type="text" id="c-name" name="row[name]" value="{$row.name}" class="form-control" title="name"  placeholder="" data-rule=""  data-tip="名称"  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-icon" class="control-label col-xs-12 col-sm-2">图标:</label>
                        <div class="col-xs-12 col-sm-8" id="div-icon" >
                            <input type="text" id="c-icon" name="row[icon]" value="{$row.icon}" class="form-control" title="icon"  placeholder="" data-rule=""  data-tip="图标"  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-pid" class="control-label col-xs-12 col-sm-2">父ID:</label>
                        <div class="col-xs-12 col-sm-8" id="div-pid" >
                            <input type="number" id="c-pid" name="row[pid]" value="0" class="form-control" title="pid" data-rule="integer" placeholder="只能填入整数"  data-tip="父ID"  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-url" class="control-label col-xs-12 col-sm-2">链接:</label>
                        <div class="col-xs-12 col-sm-8" id="div-url" >
                            <input type="text" id="c-url" name="row[url]" value="{$row.url}" class="form-control" title="url"  placeholder="" data-rule=""  data-tip="链接"  />
                        </div>
                   </div>

                <div class="form-group">
                    <label for="c-status" class="control-label col-xs-12 col-sm-2">加状态:</label>
                    <div class="col-xs-12 col-sm-8" id="div-status">
                        <input id="c-status" name="row[status]" type="hidden" value="{$row['status']}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher {if $row.status}active{else}text-gray{/if}" data-input-id="c-status" data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on  fa-2x {if $row.status!='1'}fa-flip-horizontal{/if}"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label for="c-is_check" class="control-label col-xs-12 col-sm-2">加入班级是否需要审核:</label>
                    <div class="col-xs-12 col-sm-8" id="div-is_check">
                        <input id="c-is_check" name="row[is_check]" type="hidden" value="{$row['is_check']}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher {if $row.is_check}active{else}text-gray{/if}" data-input-id="c-is_check" data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on  fa-2x {if $row.is_check!='1'}fa-flip-horizontal{/if}"></i>
                        </a>
                        <div data-favisible="switch=1" class="p-3">是</div>
                        <div data-favisible="switch=2" class="p-3">否</div>
                    </div>
                </div>

                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</form>

